package com.pp.service;

import com.github.pagehelper.PageInfo;
import com.pp.entity.*;

import java.util.List;
import java.util.Map;

/**
 * Created by lanou on 18/1/29.
 */
public interface SuccessService {

    //查询游戏信息
    Map<String,Object> game(Game game,String userName);
//    //查询用户信息
//    User game1(String name);
//    //查询money表中是否有该用户的记录
//    List<Money> game2(int uid, int gid);
    //添加余额信息
    void setMoney(int uid,int gid);
    //查询该用户在该游戏的钱
    Money queryMoney(int uid,int gid);

    List<Shop> shopping(int id, int gid);

    PageInfo buycar(int pageNum,int uid);



    Money pay(int jine, int uid, int gid);

    List<Buy> getShop(int did,int uid);

    Map<String,Object> buy(int did,int uid,int gid);

    void setBuy(int did,int uid,int gid,int allMoney);


//    Money chongzhi1(int uid, int gid);
}
